project(YOLT)

cmake_minimum_required(VERSION 3.2 FATAL_ERROR)

set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)

# add some definitions 
add_definitions(-std=c++14)

add_definitions(-mavx) # enable avx

# enabel debug
SET(CMAKE_BUILD_TYPE "Debug")  
SET(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -g2 -ggdb")  
# SET(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall")  

# include directories
include_directories(./tools ./nn_yolt)

add_subdirectory(./tools)
add_subdirectory(./nn_yolt)

find_package(OpenCV REQUIRED)
find_package(Boost REQUIRED COMPONENTS filesystem)

aux_source_directory(. DIR_SRCS)
add_executable(a.out ${DIR_SRCS})

target_link_libraries(a.out pthread tbb tools nn_yolt ${OpenCV_LIBS} ${Boost_LIBRARIES})